package com.cande.loki.test;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description 投票活动新增基础入参
 * @Author wgf
 * @Date 2025/1/6 7:27 PM
 */
@Data
public class VoteActivityAddBaseVo implements Serializable {

    private Long id;

    /**
     * 活动名称
     */
    @NotBlank(message = "活动名称不能为空")
    private String name;

    /**
     * 活动类型：1投票活动
     */
    private Integer type;

    /**
     * 开始时间
     */
    @NotEmpty(message = "开始时间不能为空")
    private Date showStartTime;

    /**
     * 结束时间
     */
    @NotEmpty(message = "结束时间不能为空")
    private Date showEndTime;

    /**
     * 状态：1待开始 2进行中 3暂停 4结束
     */
    private Integer status;


    @NotBlank(message = "活动规则不能为空")
    private String rule;

    /**
     * 菜品列表
     */
    List<DishItemVo> items;

    /**
     * 操作人id
     */
    private String operatorId;

    /**
     * 操作人name
     */
    private String operatorName;

    /**
     * 创建时间
     */
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getShowStartTime() {
        return showStartTime;
    }

    public void setShowStartTime(Date showStartTime) {
        this.showStartTime = showStartTime;
    }

    public Date getShowEndTime() {
        return showEndTime;
    }

    public void setShowEndTime(Date showEndTime) {
        this.showEndTime = showEndTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }

    public List<DishItemVo> getItems() {
        return items;
    }

    public void setItems(List<DishItemVo> items) {
        this.items = items;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
